home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 2,801 to 2,900
/
aol-file-protocol-4400-2801-to-2900.zip
/
AOLDLs
/
C++ Files Library
/
Graphic Gems I, II & III (C_C++)
/
Graphics Gems C Code.sea
/
GemsII
/
radiosity
/
draw.c
next >
Wrap
Text File
|
1992-06-16
|
1KB
|
45 lines
/*****************************************************************************
* draw.c
*
* This is a skeleton polygon drawing program
*
* Copyright (C) 1990-1991 Apple Computer, Inc.
* All rights reserved.
*
* 8/27/1991 S. Eric Chen
******************************************************************************/
#include "rad.h"
void BeginDraw(TView *view, unsigned long color)
{
/* first time this view is drawn */
if (view->wid==0)
{
/* open a new window if you want to display it on the screen */
/* assign the window id or pointer to view->wid */
/* the window id cannot be zero */
/* do all the necessary initialization here too */
}
/* make view->wid the current window */
/* set up view transformation from the parameters in view */
/* clear the frame buffer with color */
}
void DrawPolygon(int nPts, TPoint3f *pts, TVector3f* n, unsigned long color)
{
/* draw a polygon with the given color */
/* buffer the polygon if you are drawing in a display list mode */
}
void EndDraw()
{
/* finish the drawing of all polygons */
/* display the contents of view->buffer to the current window if necessary */
}